package com.andy.note.boot.controller;

import com.andy.note.boot.service.test.entity.TestOne;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * 
 *
 * @author Andy<908119428@qq.com>
 * @version $Revision: 1.1 $ $Date: 2021年7月29日 上午9:48:19 $
 */
@RestController
@Slf4j
public class TestOneController extends BaseController<TestOne>{

//    @Value("${user}")
//    private String user;
//    
//    @RequestMapping("/log")
//    public String log() {
//        log.debug("log is debug !!!");
//        log.info("log is info !!!");
//        return user;
//    }
    
    @RequestMapping("testOne")
    public String test() {
        getBaseService().test();
        return "testOne";
    }

    @Async
    public void asyncSendMsg(Integer userId,  int timeToLive) {

    }
}
